export const ColumnProps = [
    {
        title: '字典名',
        dataIndex: 'name',
        width: 200,
        ellipsis: true
    },
    {
        title: '字典编码',
        dataIndex: 'code',
        width: 200,
        ellipsis: true
    },
    {
        title: '外部编码',
        dataIndex: 'externalCode',
        width: 200,
        ellipsis: true
    },
    {
        title: '创建人',
        dataIndex: 'creator',
        width: 200,
        ellipsis: true
    },
    {
        title: '创建时间',
        dataIndex: 'createTime',
        width: 300,
        ellipsis: true
    },
    {
        title: '修改人',
        dataIndex: 'updater',
        width: 200,
        ellipsis: true
    },
    {
        title: '修改时间',
        dataIndex: 'updateTime',
        width: 300,
        ellipsis: true
    },
]

export const FilterItems = [
    {
        type: 'input',
        label: '字典名',
        key: 'name',
        placeholder:'请输入字典名',
        maxLength: 50
    },
    {
        type: 'input',
        label: '编码',
        key: 'code',
        placeholder:'请输入字典编码',
        maxLength: 50
    },
]

export const FilterModelProps = {
    total: 0,
    current: 1,
    pageSize: 10,
    name: '',
    code: ''
}

export const FormModel = {
    parentId: '',
    name: '',
    code: ''
}

export const FormItemsProps = [
    {
        type: 'select',
        label: '类型',
        key: 'parentId',
        isShow: true,
        data: [ ],
        placeholder:'请选择类型',
    },
    {
        type: 'input',
        label: '字典名',
        isShow: true,
        key: 'name',
        placeholder:'请输入字典名',
        maxLength: 50
    },
    {
        type: 'input',
        label: '编码',
        isShow: true,
        key: 'code',
        placeholder:'请输入字典编码',
        maxLength: 50
    },
    {
        type: 'input',
        label: '外部编码',
        isShow: true,
        key: 'externalCode',
        placeholder:'请输入外部编码',
        maxLength: 50
    },
]

export const RulesProps = {
    name: [{ required: true, message: '字典名称不能为空' }],
    code: [{ required: true, message: '字典编码不能为空' }],
}
